package com.juicygames.framework.type;

import com.juicygames.framework.GameMath;

public class Circle extends Point {
	
	public int radius;
	
	public Circle() {
		super();
		this.radius = 0;
	}
	
	public Circle(int x, int y, int radius) {
		super(x,y);
		this.radius = radius;
	}
	
	public Circle(Circle other) {
		this(other.x, other.y, other.radius);
	}

	public boolean doesCollide(Point p) {
		return (int)GameMath.distance(this, p) < radius;
	}

	public Point getPoint() {
		return new Point(x,y);
	}
	
	

}
